package com.jlzj.test;

import com.jlzj.config.AppConfig;
import com.jlzj.entity.User;
import com.jlzj.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * TODO:
 *
 * @author jiangyangchuan
 * @date 2022/8/14 0014 17:55
 */

public class MyApplication {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
        UserService userService = (UserService)annotationConfigApplicationContext.getBean("userService");
//        userService.getUserList();
        userService.insert(new User());
    }
}
